package com.pdg.mcplugin.spawnsurance;

import java.util.Set;

import org.bukkit.Material;

public enum FilterState {
	OFF,
	INCLUDE,
	EXCLUDE;
	public boolean checkPersistence(Material theMaterial, Set<Material> theSet){
		if(this==OFF){
			return true;
		}else if(this==INCLUDE){
			return theSet.contains(theMaterial);
		}else if(this==EXCLUDE){
			return !theSet.contains(theMaterial);
		}
		return false;
	}
	public boolean checkDrop(Material theMaterial, Set<Material> theSet){
		return !checkPersistence(theMaterial,theSet);
	}
}
